-When a file is annexed, a [[key|internals/key_format]] is generated from
-its content and/or filesystem metadata. The file checked into git symlinks
-to the key. This key can later be used to retrieve the file's content (its
-value).
-
-Multiple key-value backends are supported, and a single repository
-can use different ones for different files.
+The "backend" in git-annex specifies how a key is generated from a file's
+content and/or filesystem metadata. Most backends are different kinds of
+hashes. A single repository can use different backends for different files.
+The [[key|internals/key_format]] includes the backend that is used for that
+key.
## configuring which backend to use
platforms.
* `BLAKE2S160`, `BLAKE2S224`, `BLAKE2S256`
`BLAKE2S160E`, `BLAKE2S224E`, `BLAKE2S256E`
- -- Fast [Blake2 hash](https://blake2.net/) variants optimised for 32 bit
+ -- Fas:w
+ t [Blake2 hash](https://blake2.net/) variants optimised for 32 bit
platforms.
* `BLAKE2BP512`, `BLAKE2BP512E`
-- Fast [Blake2 hash](https://blake2.net/) variants optimised for
URL; for long URLs, part of the URL may be represented by a checksum.
The URL key may contain `&` characters; be sure to quote the key if
passing it to a shell script. The URL-backend key is distinct from URLs/URIs
- that may be attached to a key (from any backend) indicating the key's location
+ that may be attached to a key (using any backend) indicating the key's location
on the web or in one of [[special_remotes]].
* `GIT` -- This is used internally by git-annex when exporting trees
containing files stored in git, rather than git-annex. It represents a
Note that the various 512 and 384 length hashes result in long paths,
which are known to not work on Windows. If interoperability on Windows is a
concern, avoid those.
-
-See also: [[git-annex-examinekey]]
--- /dev/null
+# NAME
+
+git-annex-backends - key/value backends for git-annex
+
+# DESCRIPTION
+
+The "backend" in git-annex controls how a key is generated from a file's
+content and/or filesystem metadata. Most backends are different kinds of
+hashes. A single repository can use different backends for different files.
+
+For a list of available backends, see `git-annex version`. For more
+details, see <https://git-annex.branchable.com/backends/>
+
+# SEE ALSO
+
+[[git-annex]](1)
+
+# AUTHOR
+
+Joey Hess <id@joeyh.name>
+
+<http://git-annex.branchable.com/>
+
+Warning: Automatically converted into a man page by mdwn2man. Edit with care.
[[git-annex-upgrade]](1)
+[[git-annex-backend]](1)
+
# AUTHOR
Joey Hess <id@joeyh.name>
Like lackingcopies, but does not look at .gitattributes annex.numcopies
settings. This makes it significantly faster.
-* `inbackend=name`
+* `inbackend=backendname`
Matches only files whose content is stored using the specified key-value
backend.
+ See [[git-annex-backends]](1) for information about available backends.
+
* `securehash`
Matches only files whose content is hashed using a cryptographically
* `annex.backend`
Name of the default key-value backend to use when adding new files
- to the repository.
+ to the repository. See [[git-annex-backends]](1) for information about
+ available backends.
This is overridden by annex annex.backend configuration in the
.gitattributes files, and by the --backend option.
The key-value backend used when adding a new file to the annex can be
configured on a per-file-type basis via `.gitattributes` files. In the file,
the `annex.backend` attribute can be set to the name of the backend to
-use. For example, this here's how to use the WORM backend by default,
+use. (See [[git-annex-backends]](1) for information about
+available backends.)
+For example, this here's how to use the WORM backend by default,
but the SHA256E backend for ogg files:
* annex.backend=WORM
doc/git-annex-addurl.mdwn
doc/git-annex-adjust.mdwn
doc/git-annex-assistant.mdwn
+ doc/git-annex-backends.mdwn
doc/git-annex-calckey.mdwn
doc/git-annex-checkpresentkey.mdwn
doc/git-annex-config.mdwn
doc/git-annex-renameremote.mdwn
doc/git-annex-repair.mdwn
doc/git-annex-required.mdwn
+ doc/git-annex-restage.mdwn
doc/git-annex-resolvemerge.mdwn
doc/git-annex-rmurl.mdwn
doc/git-annex-schedule.mdwn